/* 全局样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #333;
  background: url("../images/pc/newbj.jpg") no-repeat top center;
  background-color: #d33536;
  background-size: cover;
}

.ell {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.clear {
  display: block !important;
  float: none !important;
  clear: both;
  overflow: hidden;
  width: auto !important;
  height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
}

.top {
  width: 100%;
  height: auto;
  display: block;
  float: left;
}

.main {
  max-width: 1750px;
  width: 91%;
  margin: 0 auto;
}

.title {
  width: 100%;
  height: 135px;
  background-repeat: no-repeat;
  background-position: center center;
}

.title1 {
  background-image: url("../images/pc/title_bj1.png");
  margin-bottom: 40px;
}

.title2 {
  background-image: url("../images/pc/title_bj2.png");
  margin-top: 60px;
  margin-bottom: 60px;
}

.title3 {
  background-image: url("../images/pc/title_bj3.png");
  margin-top: 60px;
  margin-bottom: 60px;
}

.footer {
  width: 100%;
  height: 90px;
}

.boxs_t {
  display: flex;
  /* 启用Flex布局 */
  gap: 3%;
  /* 列之间的间距 */
  width: 100%;
  /* 占满父容器宽度 */
  padding: 0;
  /* 移除内边距 */
  box-sizing: border-box;
  /* 不需要设置固定高度，让容器自动适应内容 */
}

.box_t {
  flex: 1;
  /* 三列等宽分配空间 */
  /* 移除height: auto，或保持默认即可 */
  background: #f0f0f0;
  /* 背景色，方便观察 */
  box-sizing: border-box;
  background: linear-gradient(to bottom, #fff2d1, #ffd594);
  border: 1px solid #ee8c83;
  position: relative;
}

.box_t2 {
  background: #fff7f0;
}

.box_title {
  width: 228px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;

  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: url("../images/pc/box_bj.png") no-repeat center center;
  background-size: 100% 100%;

  font-family: "PingFang SC";
  font-style: normal;
  font-weight: 400;
  font-size: 28px;

  color: #ffffff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.box_title img {
  width: auto;
  height: 38px;
  margin-right: 12px;
}

.book-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 5%;
  padding: 60px 0% 10px;
  justify-items: center;
  width: 100%;
display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.book-container .book-item {
  flex: 0 0 calc(28%);
  /* 50%宽度减去一半gap间距 */
}


.book-container2 {
  /* grid-template-columns: repeat(2, 1fr); */
  /* gap: 10px 8%; */
  padding: 60px 7% 10px;
}

.book-container2 .book-item {
  flex: 0 0 calc(45%);
}

.book-container4 .book-item {
  flex: 0 0 calc(45%);
}


.book-container3 {
  /* grid-template-columns: repeat(3, 1fr);
  gap: 10px 5%; */
  padding: 60px 2% 10px;
}


.book-container4 {
  /* grid-template-columns: repeat(2, 1fr);
  gap: 20px 8%; */
  padding: 10px 7% 10px;
}

.book-container5 .book-item {
  flex: 0 0 calc(25%);
}

.book-item {
  text-align: center;
  cursor: pointer;
  flex: 0 0 calc(50% - 10px);
  /* 50%宽度减去一半gap间距 */
}

.book-item img {
  width: 100%;
  height: auto;
  border: 2px solid #d8ac46;
  box-sizing: border-box;
}

.book-item:hover img {
  border: 2px solid #b42227;
}

.book-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: 5px;
  font-size: 13px;
  line-height: 20px;
  color: #333333;
  min-height: 60px;
}


.book-container4 .book-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-top: 5px;
  font-size: 15px;
  line-height: 20px;
  color: #333333;
  min-height: 50px;
}

.book-item:hover p {
  color: #b42227;
}

.box_l {
  width: 50%;
  float: left;
}

.box_lm {
  width: 100%;
}

.box_l_title {
  width: auto;
  margin: 50px 0 -40px 5%;
  float: left;
  border-bottom: 4px solid #fddfcd;
  line-height: 30px;
}

.box_l_title img {
  width: 25px;
  height: 25px;
  margin: 0 -5px -10px 0;
  display: block;
  float: left;
}

.box_l_title span {
  font-size: 20px;
  color: #843508;
  margin: 0 -5px -10px 10px;
  display: block;
  float: left;
}

.f_banner {
  width: 86%;
  height: auto;
  display: block;
  margin: 60px 7% 0px;
  position: relative;
}

.f_banner .img {
  width: 100%;
  height: auto;
}

.f_banner .i {
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: auto;
}

.f_banner_title {
  width: 86%;
  height: auto;
  font-size: 16px;
  color: #333333;
  margin: 10px 7% 10px;
  float: left;
  position: relative;
  text-align: center;

}

.v_box {
  width: 86%;
  margin: 60px 7% 20px;
  background: #8f191e;
  position: relative;
  float: left;
  padding: 0 0 20px;
  height: 90%;
  box-sizing: border-box;
}

.v_box_bj {
  width: 100%;
  height: auto;
  float: left;
}

.v_box_name {
  width: 100%;
  height: auto;
  font-size: 30px;
  color: #cfb184;
  margin: 10px 0 20px;
  float: left;
  position: relative;
  text-align: center;
}

.v_box_main {
  background: #b52e2e;
  width: 80%;
  margin: 0 10% 0;
  padding: 20px;
  float: left;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 26px;
  color: #cfb184;
  position: relative;
}

.v_box_main p {
  /* 首行缩进 */
  text-indent: 2em;
}

.v_box_main span {
  width: 100%;
  height: auto;
  display: block;
  float: left;
}




/* 轮播卡片样式 */
.swiper-slide {
  width: 78%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}


/* 非活跃卡片的缩小效果 */
.swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.85);
  /* 缩小15% */
}

/* 解决边缘卡片显示不完整问题 */
.swiper-wrapper {
  padding: 10px 0;
}

.top1_3 {
  gap: 10px 5%;
  padding: 60px 3% 10px;
}

.top1_3 .book-item p{
 margin: 10px 0 10px;
}

.pc {
  display: block !important;
}

.phone {
  display: none !important;
}

a {
  text-decoration: none;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
  body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background: url("../images/phone/bj.jpg") no-repeat top center;
    background-color: #d33536;
    background-size: cover;
  }

  .main {
    width: 100%;
    margin: 0 auto;
    opacity: 0;
  }

  .title {
    width: 90%;
    margin: 0 5%;
    height: 100px;
    background-size: auto 70%;
    margin-bottom: 0 !important;
  }

  .book-container {
    gap: 10px 5%;
    padding: 60px 5% 10px;
  }

  .book-item p {
    margin: 0;
    font-size: 13px;
    line-height: 17px;
    min-height: 34px;
    -webkit-line-clamp: 2;
  }

  .stop2_3 {
    gap: 10px 4%;
    padding: 60px 0% 10px;
  }

  .stop2_3 .book-item p {
    -webkit-line-clamp: 3;
    min-height: 51px;
    margin: 10px 0;
  }


  .footer {
    width: 100%;
    height: 20px;
  }


  .v_box_name {
    font-size: 14px;
    margin: 0px 0 5px;
  }
/* 
  .v_box_main {
    font-size: 13px;
    line-height: 17px;
    padding: 10px;
    width: 90%;
    margin: 0 5%;

  }

  .v_box_main span {
    font-size: 13px;
    line-height: 17px;
  } */

  .book-container4 {
    padding: 5px 5% 10px;
  }

  .stop1_3 .book-item p {
    margin: 5px 0 15px;
  }

  /* .v_box_bj {
    width: 80%;
    margin: 0 10%;
    height: auto;
    float: left;
  } */

  .boxs_t {
    flex-direction: column;
  }

  .phone {
    display: block !important;
  }

  .pc {
    display: none !important;
  }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {}